package com.iov.car.mapper;

import com.iov.car.domain.TbDictionary;

import java.util.List;


/**
 * 字典Mapper接口
 * 
 * @author ruoyi
 * @date 2023-11-13
 */
public interface TbDictionaryMapper 
{
    /**
     * 查询字典
     * 
     * @param id 字典主键
     * @return 字典
     */
    public TbDictionary selectTbDictionaryById(Long id);

    /**
     * 查询字典列表
     * 
     * @param tbDictionary 字典
     * @return 字典集合
     */
    public List<TbDictionary> selectTbDictionaryList(TbDictionary tbDictionary);

    /**
     * 新增字典
     * 
     * @param tbDictionary 字典
     * @return 结果
     */
    public int insertTbDictionary(TbDictionary tbDictionary);

    /**
     * 修改字典
     * 
     * @param tbDictionary 字典
     * @return 结果
     */
    public int updateTbDictionary(TbDictionary tbDictionary);

    /**
     * 删除字典
     * 
     * @param id 字典主键
     * @return 结果
     */
    public int deleteTbDictionaryById(Long id);

    /**
     * 批量删除字典
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbDictionaryByIds(Long[] ids);

//    List<TbDictionary> getCarType(Integer id);

    List<TbDictionary> getCarMachine(Integer id);

    List<TbDictionary> getCarBattery(Integer id);

    List<TbDictionary> getList();

    TbDictionary getCarType(Integer id);
}
